package javatwo.annotation.course2.rs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/helloREST/{name}")
public class HelloREST {

	@GET
	@Produces(MediaType.TEXT_PLAIN)
	public String getHello(@PathParam("name") String name) {
		return "Hello *"+name+"* from JAX-RS";
	}
	
}
